package net.caixiaomi.info.widgets;

import android.content.Context;
import android.support.v4.widget.NestedScrollView;
import android.util.AttributeSet;
import android.view.MotionEvent;


public class BottomSheetDialogNestScrollView extends NestedScrollView {
    public BottomSheetDialogNestScrollView(Context context) {
        super(context);
    }

    public BottomSheetDialogNestScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public BottomSheetDialogNestScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        getParent().requestDisallowInterceptTouchEvent(true);
        return super.dispatchTouchEvent(ev);
    }
}
